package my.mall.db.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 职务角色_资源映射表
 * </p>
 *
 * @author fengbo
 * @since 2024-04-22
 */
@TableName("mall_role_resource")
class RoleResource {

    /**
     * 职务角色ID
     */
    var roleId: Long? = null

    /**
     * 资源ID
     */
    var resourceId: Long? = null

    companion object {

        const val ROLE_ID : String = "role_id"


        const val RESOURCE_ID : String = "resource_id"

    }

    override fun toString(): String {
        return "RoleResource{" +
        "roleId=" + roleId +
        ", resourceId=" + resourceId +
        "}"
    }
}
